Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets
authorDan Williams <dcbw@redhat.com>
Sun, 8 Aug 2010 04:14:47 +0000 (23:14 -0500)
committerDan Williams <dcbw@redhat.com>
Sun, 8 Aug 2010 04:14:47 +0000 (23:14 -0500)
gtk/gtkwidget.c

index 46456736fba1948bc825ea996c95713d379dc437..3da8d5816c10754bd86cf9d5d9356869cb709b10 100644 (file)
@@ -5613,7 +5613,10 @@ _gtk_widget_set_has_default (GtkWidget *widget,
  * yourself by calling <literal>gtk_widget_set_can_default (@widget,
  * %TRUE)</literal>. The default widget is activated when 
  * the user presses Enter in a window. Default widgets must be 
- * activatable, that is, gtk_widget_activate() should affect them.
+ * activatable, that is, gtk_widget_activate() should affect them. Note
+ * that #GtkEntry widgets require the "activates-default" property
+ * set to %TRUE before they activate the default widget when Enter
+ * is pressed and the #GtkEntry is focused.
  **/
 void
 gtk_widget_grab_default (GtkWidget *widget)